home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 7
/
007.d81
/
library adventur
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
9KB
|
253 lines
10 rem * * * * * * * * * * * * * * * *
20 rem * library adventure *
30 rem * by *
32 rem * dawn burgoon *
34 rem * translated for commodore *
36 rem * by donna k. woody *
50 rem * * * * * * * * * * * * * * * *
60 :
70 rem *** variables used ***
80 rem *** l$=location description
90 rem *** c1$=choice 1
100 rem *** c2$=choice 2
110 rem *** r1$=response to choice 1
120 rem *** r2$=response to choice 2
130 rem *** a$=user response
150 rem *** i=for/next loop variable
160 rem *** j=counting loop variable
170 rem *** k=counting loop variable
180 :
190 poke783,peek(783)and254:s=65520:poke53280,9:poke53281,7:printchr$(144)
200 printchr$(14):printchr$(8)
210 :
220 rem *** title ***
230 :
240 printchr$(147)
250 poke781,4:poke782,4:syss:print"[204] [201] [194] [210] [193] [210] [217] [193] [196] [214] [197] [206] [212] [213] [210] [197]"
260 poke781,7:poke782,19:syss:print"by"
270 poke781,10:poke782,14:syss:print"[196]awn [194]urgoon"
280 poke781,12:poke782,15:syss:print"[193]pril 1984"
282 poke781,15:poke782,4:syss:print"[212]ranslated for the [195]ommodore by"
284 poke781,17:poke782,13:syss:print"[196]onna [203]. [215]oody"
440 :
450 rem *** user instructions ***
460 :
470 poke781,22:poke782,3:syss:print"[215]ould you like instructions (y/n)? ";
490 poke198,0:wait198,1:geta$
500 ifa$="y"ora$="[217]"then520
505 ifa$="n"ora$="[206]"then 800
510 goto470
520 printchr$(147)
530 print"----------------------------------------"
540 printtab(7)"[145][201] [206] [211] [212] [210] [213] [195] [212] [201] [207] [206] [211]"
550 print"----------------------------------------"
560 print" [217]our space ship has just landed on"
570 print:print"the strange and wondrous planet of"
580 print:print"[204]ibrarium. [217]ou have volunteered to"
590 print:print"explore this planet and find out about"
600 print:print"its resources. [217]ou can take with you"
610 print:print"a portable computer backpack which"
620 print:print"contains a database of information"
630 print:print"about the galaxy."
640 poke781,22:poke782,7:syss:print"[208]ress <[210][197][212][213][210][206]> to continue."
650 poke198,0:wait198,1:geta$:ifa$=chr$(13)thenprintchr$(147)
660 ifa$<>chr$(13)then640
670 print"[217]ou will have to use your knowledge of"
680 print:print"libraries in order to search the"
690 print:print"database. [194]efore making a decision,"
700 print:print"you can consult a table of the"
710 print:print"'[196]ewey [196]ecimal [211]ystem' to help you"
720 print:print"decide which database to search for"
730 print:print"facts about the planet."
740 poke781,22:poke782,7:syss:print"[208]ress <[210][197][212][213][210][206]> to continue."
750 poke198,0:wait198,1:geta$:ifa$=chr$(13)thenprintchr$(147)
760 ifa$<>chr$(13)then740
770 :
780 rem *** display encounters ***
790 :
800 printchr$(147)
810 fori=1to10
815 poke781,1:poke782,14:syss:print"[197]ncounter #"i
820 onigosub2000,2100,2200,2300,2400,2500,2600,2700,2800,2900
870 poke781,16:poke782,0:syss
875 print"[208]ress 1, 2, or [196] (to display the [196]ewey [196]ecimal [211]ystem)"
880 :
890 rem *** accept user input ***
900 :
910 poke198,0:wait198,1:geta$
920 ifa$<>"1"anda$<>"2"anda$<>"[196]"anda$<>"d"then910
930 ifa$="d"ora$="[196]"thenk=k+1:goto1260
940 ifa$="1"thenpoke781,19:poke782,0:syss:printr1$
950 ifa$="2"thenpoke781,19:poke782,0:syss:printr2$
960 gosub1220
970 printchr$(147)
980 next
990 :
1000 rem *** conclusion ***
1010 :
1020 print:print" [193]s you sleep the shost of the ancient"
1030 print:print"librariun [196]ui appears in your dream."
1040 print:print"[200]e says,'[217]ou are on your way to finding"
1050 print:print"the key to knowledge. [213]se it wisely and"
1060 print"the galaxy will be yours.'"
1070 print:print" [215]hen you awake, you continue on your"
1080 print:print"journey. [217]ou will return often to"
1090 print:print"[204]ibrarium, for its resources are many."
1100 poke781,23:poke782,8:syss:print"[208]ress <[210][197][212][213][210][206]> to continue."
1110 poke198,0:wait198,1:geta$:ifa$=chr$(13)thenprintchr$(147)
1120 ifa$<>chr$(13)then1100
1130 poke781,8:poke782,0:syss:print"[217]ou consulted the table of the"
1140 print"[196]ewey [196]ecimal [211]ystem ";k;" times."
1150 poke781,15:poke782,0:syss:print"[196]o you want to play again? <y/n) ";:
1160 poke198,0:wait198,1:geta$
1170 ifa$="y"ora$="[217]"then800
1180 ifa$="n"ora$="[206]"then1430
1210 goto1150
1220 poke781,23:poke782,5:syss:print"[208]ress <[210][197][212][213][210][206]> to continue.";
1225 poke198,0:wait198,1:geta$:return
1230 :
1240 rem *** dewey decimal system ***
1250 :
1260 printchr$(147):print"----------------------------------------"
1265 poke781,2:poke782,10:syss:print"[196][197][215][197][217] [196][197][195][201][205][193][204] [211][217][211][212][197][205]"
1270 print"----------------------------------------"
1280 print" 000 - [197]ncyclopedias"
1290 print" 100 - [208]hilosophy"
1300 print" 200 - [210]eligion"
1310 print" 300 - [211]ocial [211]ciences, [198]olklore"
1320 print" 400 - [204]anguage, [196]ictionaries"
1330 print" 500 - [211]cience, [193]nimals, [208]lants"
1340 print" 600 - [211]pace travel, [208]ets, [195]ooking, [200]ealth"
1350 print" 700 - [205]usic, [193]rt, [211]ports, [199]ames"
1360 print" 800 - [204]iterature, [208]oetry"
1370 print" 900-919 - [199]eography"
1380 print" 920,921 - [194]iography"
1390 print" 930-999 - [200]istory"
1400 poke781,20:poke782,7:syss:print"[208]ress <[210][197][212][213][210][206]> to continue.";
1410 poke198,0:wait198,1:geta$:ifa$=chr$(13)thenprintchr$(147):goto815
1420 ifa$<>chr$(13)then1400
1430 goto63000:rem end *******
1950 :
1960 rem *** encounters ***
1970 :
1980 rem *** encounter #1 ***
1990 :
2000 poke781,5:poke782,0:syss:print"[212]he planet stretches out before you. [201]t"
2010 print"would help to have a map to guide you."
2020 poke781,10:poke782,0:syss:print"[217]ou search in: "
2030 poke781,12:poke782,0:syss:print"1) 910-919"
2040 poke781,14:poke782,0:syss:print"2) 300's"
2060 r1$="[199]ood choice! [193]n atlas would be found in 912."
2070 r2$="[212]he 300's are [211]ocial [211]cience. [193]n atlas would be found in 912."
2080 return
2097 :
2098 rem *** encounter #2 ***
2099 :
2100 poke781,5:poke782,0:syss:print"[217]ou come upon a purple mushroom-shaped"
2110 print"plant four feet tall. [217]ou will need to identify it."
2120 poke781,10:poke782,0:syss:print"[217]ou search in: "
2130 poke781,12:poke782,0:syss:print"1) 200's"
2140 poke781,14:poke782,0:syss:print"2) 500's"
2150 r1$="[212]he 200's are [210]eligion and [205]ythology."
2160 r2$="[197]xcellent decision! [193] book on plants would be in the 580's."
2170 return
2197 :
2198 rem *** encounter #3 ***
2199 :
2200 poke781,5:poke782,0:syss:print"[201]n the distance you see a herd of"
2210 print"strange beasts. [212]o find out whether to"
2215 print"approach them you will need to identify their species."
2220 poke781,10:poke782,0:syss:print"[217]ou search in: "
2230 poke781,12:poke782,0:syss:print"1) 500's"
2240 poke781,14:poke782,0:syss:print"2) 700's"
2250 r1$="[199]ood choice! [193] book an animals would befound in the 590's."
2260 r2$="[212]he 700's are [211]ports and the [193]rts."
2270 return
2297 :
2298 rem *** encounter #4 ***
2299 :
2300 poke781,5:poke782,0:syss:print"[201]n the ruins of an old building you"
2310 print"find some scrolls written in [204]ibrarese."
2315 print"[217]ou will need a [204]ibrarese-[197]nglish dictionary to translate."
2320 poke781,10:poke782,0:syss:print"[217]ou search in: "
2330 poke781,12:poke782,0:syss:print"1) 930-999"
2340 poke781,14:poke782,0:syss:print"2) 400's"
2350 r1$="930-999 are books are [200]istory."
2360 r2$="[212]errific! [196]ictionaries are found in the400's."
2370 return
2397 :
2398 rem *** encounter #5 ***
2399 :
2400 poke781,5:poke782,0:syss:print"[215]hen you translate the scroll you find"
2410 print"that it is a tall tale about a"
2415 print"legendary hero. [212]o read more legends.."